<?php

namespace backend\models\odm;

use Yii;

/**
 * This is the model class for table "xs_novel_charge".
 *
 * @property string $charge_id
 * @property integer $charge_model
 * @property integer $charge_start_chapter
 * @property integer $charge_price
 * @property integer $charge_status
 * @property string $novel_create_time
 * @property string $novel_update_time
 */
class NovelChargeOdm extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'xs_novel_charge';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['charge_model', 'charge_start_chapter', 'charge_price', 'charge_status'], 'integer'],
            [['novel_create_time', 'novel_update_time'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'charge_id' => Yii::t('app', '收费标准id'),
            'charge_model' => Yii::t('app', '收费模式 0免费,1按章节收费，2全本收费'),
            'charge_start_chapter' => Yii::t('app', '第几章开始收费'),
            'charge_price' => Yii::t('app', '收费阅币'),
            'charge_status' => Yii::t('app', '收费状态 默认1 有效 0无效'),
            'novel_create_time' => Yii::t('app', '创建时间'),
            'novel_update_time' => Yii::t('app', '修改时间'),
        ];
    }
}
